package com.example.authority.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Data;

    import lombok.experimental.Accessors;


/**
 * @program: authority-hm-0.0.1
 * @ClassName:Order
 * @description: 订单管理 实体类
 * @author:dyy
 * @Version 3.0
 **/

@Data
@Builder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_order")
@Schema(title = "Order对象", description = "订单管理")
public class Order implements Serializable{

private static final long serialVersionUID=1L;

        @Schema(title = "序列号")
                @TableId(value = "id", type = IdType.AUTO)
                @ExcelProperty("序列号")
private Long id;

        @Schema(title = "订单编号")
    @TableField("name")
        @ExcelProperty("订单编号")
private String name;

        @Schema(title = "创建账户")
    @TableField("username")
        @ExcelProperty("创建账户")
private String username;

        @Schema(title = "所属商品")
    @TableField("gid")
        @ExcelProperty("所属商品")
private Long gid;

        @Schema(title = "订单数量")
    @TableField("scount")
        @ExcelProperty("订单数量")
private Integer scount;

        @Schema(title = "商品信息")
    @TableField("goods")
        @ExcelProperty("商品信息")
private String goods;

        @Schema(title = "所属订单")
    @TableField("aid")
        @ExcelProperty("所属订单")
private Long aid;

        @Schema(title = "地址信息")
    @TableField("address")
        @ExcelProperty("地址信息")
private String address;

        @Schema(title = "当前状态")
    @TableField("statu")
        @ExcelProperty("当前状态")
private Integer statu;

        @Schema(title = "订单金额")
    @TableField("total")
        @ExcelProperty("订单金额")
private Double total;


        }
